import request from '@/utils/request'

/**
 * 获取组织架构
 * @returns promise
 */
export function getDepartment() {
  return request({
    method: 'GET',
    url: '/company/department'
  })
}

/**
 * 删除组织架构
 * @returns promise
 */
export function delDepartment(id) {
  return request({
    method: 'DELETE',
    url: `/company/department/${id}`
  })
}
